﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Project.Core;
using Microsoft.Xna.Framework.Graphics;

namespace TLS
{
    public class Sangre : Sprite
    {
        private Game1 game;
        public Animacion animacionSangre;

        public Sangre(Game1 game)
            : base(null)
        {
            this.game = game;
            Texture2D sangre01 = game.Content.Load<Texture2D>("sangre/sangre1");
            Texture2D sangre02 = game.Content.Load<Texture2D>("sangre/sangre2");
            Texture2D sangre03 = game.Content.Load<Texture2D>("sangre/sangre3");
            Texture2D sangre04 = game.Content.Load<Texture2D>("sangre/sangre4");
            Texture2D sangre05 = game.Content.Load<Texture2D>("sangre/sangre5");
            Texture2D sangre06 = game.Content.Load<Texture2D>("sangre/sangre6");
            Texture2D sangre07 = game.Content.Load<Texture2D>("sangre/sangre7");
            Texture2D sangre08 = game.Content.Load<Texture2D>("sangre/sangre8");

            animacionSangre = new Animacion();
            animacionSangre.agregarFrame(sangre01, 200);
            animacionSangre.agregarFrame(sangre02, 200);
            animacionSangre.agregarFrame(sangre03, 200);
            animacionSangre.agregarFrame(sangre04, 200);
            animacionSangre.agregarFrame(sangre05, 200);
            animacionSangre.agregarFrame(sangre06, 200);
            animacionSangre.agregarFrame(sangre07, 200);
            animacionSangre.agregarFrame(sangre08, 200);


            base.animacion = animacionSangre;
        }

        public override void actualizar(long tiempo)
        {
            base.actualizar(tiempo);
        }
    }
}
